package com.android.goal;

import java.util.ArrayList;

public class League {
	private String competition;
	private ArrayList<Match> listMatch;
	
	public League(String competition){
		this.competition = competition;
		this.listMatch = new ArrayList<Match>();
	}
				
	public void addMatch(Match match){
		if (!listMatch.contains(match)){
			listMatch.add(match);
		}
	}
	
	public String getCompetition(){
		return this.competition;
	}
	
	public ArrayList<Match> getListMatch(){
		return this.listMatch;
	}
}
